The following commands all understand the numerical prefix. For instance, 3 K v means “view the third MIME part”.
The rest of these MIME commands do not use the numerical prefix in the same manner:
cid scheme, as they are
generally considered to be safe, will be processed properly.
The message header is added to the beginning of every
HTML part unless the prefix argument is
given.
Warning: Spammers use links to images (using the
http scheme) in HTML articles
to verify whether you have read the message. As this command
passes the HTML content to the browser
without eliminating these “web bugs” you should
only use it for mails from trusted senders.
If you always want to display HTML
parts in the browser, set mm-text-html-renderer
to nil.
This command creates temporary files to pass
HTML contents including images if any to
the browser, and deletes them when exiting the group (if you
want).
gnus-summary-repair-multipart).gnus-summary-save-parts). Understands the
process/prefix convention (see Process/Prefix).gnus-summary-toggle-display-buttonized).gnus-article-decode-mime-words).gnus-article-decode-charset).
This command looks in the Content-Type header
to determine the charset. If there is no such header in the
article, you can give it a prefix, which will prompt for the
charset to decode as. In regional groups where people post
using some common encoding (but do not include
MIME headers), you can set the
charset group/topic parameter to the required
charset (see Group
Parameters).
gnus-mime-view-all-parts).Relevant variables:
gnus-ignored-mime-typesnil.
To have all Vcards be ignored, you'd say something like this:
(setq gnus-ignored-mime-types
'("text/x-vcard"))
gnus-article-loose-mimenil, Gnus won't require the
‘MIME-Version’ header before
interpreting the message as a MIME message.
This helps when reading messages from certain broken mail user
agents. The default is t.gnus-article-emulate-mimenil, Gnus will look in message bodies to see
if it finds these encodings, and if so, it'll run them through
the Gnus MIME machinery. The default is
t. Only single-part yEnc encoded attachments can
be decoded. There's no support for encoding in Gnus.gnus-unbuttonized-mime-typesgnus-buttonized-mime-types. The
default value is (".*/.*"). This variable is only
used when gnus-inhibit-mime-unbuttonizing is
nil.gnus-buttonized-mime-typesgnus-unbuttonized-mime-types. The default value
is nil. This variable is only used when
gnus-inhibit-mime-unbuttonizing is
nil.
To see e.g. security buttons but no other buttons, you
could set this variable to ("multipart/signed")
and leave gnus-unbuttonized-mime-types at the
default value.
You could also add "multipart/alternative" to
this list to display radio buttons that allow you to choose
one of two media types those mails include. See also
mm-discouraged-alternatives (see
Display Customization).
gnus-inhibit-mime-unbuttonizingnil, then all MIME
parts get buttons. The default value is
nil.gnus-article-mime-part-functionHere's an example function the does the latter:
(defun my-save-all-jpeg-parts (handle)
(when (equal (car (mm-handle-type handle)) "image/jpeg")
(with-temp-buffer
(insert (mm-get-part handle))
(write-region (point-min) (point-max)
(read-file-name "Save jpeg to: ")))))
(setq gnus-article-mime-part-function
'my-save-all-jpeg-parts)
gnus-mime-multipart-functionsgnus-mime-display-multipart-alternative-as-mixedgnus-mime-display-multipart-related-as-mixedIf displaying ‘text/html’ is discouraged, see
mm-discouraged-alternatives, images or other
material inside a "multipart/related" part might be
overlooked when this variable is nil.
Display Customization.
gnus-mime-display-multipart-as-mixedt, it overrides nil values of
gnus-mime-display-multipart-alternative-as-mixed
and
gnus-mime-display-multipart-related-as-mixed.
mm-file-name-rewrite-functionsReady-made functions include
mm-file-name-delete-whitespace,
mm-file-name-trim-whitespace,
mm-file-name-collapse-whitespace, and
mm-file-name-replace-whitespace. The later uses
the value of the variable
mm-file-name-replace-whitespace to replace each
whitespace character in a file name with that string; default
value is "_" (a single underscore).
The standard functions capitalize,
downcase, upcase, and
upcase-initials may be useful, too.
Everybody knows that whitespace characters in file names are evil, except those who don't know. If you receive lots of attachments from such unenlightened users, you can make live easier by adding
(setq mm-file-name-rewrite-functions
'(mm-file-name-trim-whitespace
mm-file-name-collapse-whitespace
mm-file-name-replace-whitespace))
to your ~/.gnus.el file.